
import { defineStore} from 'pinia'
import { reactive } from 'vue'
export const useUserStore = defineStore('userStore', () => { 
  const user = reactive({
    userId: '1',
    name: 'Tom',
    age: 20,
    address: 'Beijing',
    roles: [],
    permissions:[],
  })
  function getUserId() { 
    return user.userId
  }
  return {
    user,
    getUserId,
  };
})